<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="pub/top_list2.jsp"%>
<%
	String sql = "select * from member where userid=? and password=?";
	String[] param = new String[2];
	param[0] =request.getParameter("userid"); 
	param[1] =request.getParameter("password"); 
	List<Map<String, Object>> list = db.queryList(sql, param);
	String name = request.getParameter("userid");
	
%>

<body>
<% if (list.size()>0){ %>  
<jsp:forward page="selflogin.jsp"/> 

<%}   
else  
if (list.size()==0){  
%>  
<jsp:forward page="login.jsp"/>  
<%} %>
</body>
</html>
